package dao;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class AccountDaoImpl extends JdbcDaoSupport implements IAccountDao{
    @Override
    public void out(String outer, int money){
            this.getJdbcTemplate().update(aql:"update account set money = monty - ? where username = ?",money, outer);

    }
    @Override
    public void out(String inner, int money){
        this.getJdbcTemplate().update(aql:"update account set money = monty + ? where username = ?",money, inner);

    }
